import request from '@/utils/request'
import qs from "querystring"
export default{
    //分页查询
    getFindPages(pageNum,pageSize,sort){
        return request({
            url:"/api-operate/seckill/activities/getPageList",
            method:"get",
            params:{
                pageNum,
                pageSize,
                sort
            }
        })
    },

    //筛选查询
    getFindAllPages(pageNum,pageSize,sort,activityName){
        return request({
            url:"/api-operate/seckill/activities/getPageAllList",
            method:"get",
            params:{
                pageNum,
                pageSize,
                sort,
                activityName
            }
        })
    },

    //添加保存
    getAddActivityList(dto){
        var data=qs.stringify(dto)
        return request({
            url:"/api-operate/seckill/activities/getAddActivity",
            method:"post",
            data
        })
    },

    //编辑修改
    getUpdateActivityList(dto){
        var data=qs.stringify(dto)
        return request({
            url:"/api-operate/seckill/activities/getUpdateActivity",
            method:"put",
            data
        })
    },

    //软删除
    getDelActivityList(id){
        var data=qs.stringify({id})
        return request({
            url:"/api-operate/seckill/activities/getDeleteActivity",
            method:"delete",
            data
        })
    }
}